import com.sun.org.apache.xpath.internal.operations.Bool;
import dao.UserDao;
import mapper.UserMapper;
import org.apache.ibatis.session.SqlSession;
import pojo.User;
import util.MybatisUtils;

public class v {
    public static void main(String[] args) {
////        String email="2394412110@qq.com";
////        Long id=Long.parseLong(email.replace("@qq.com",""));
////        System.out.println(id);
        SqlSession sqlSession = MybatisUtils.getSqlSession();
//        //调用getMapper方法                            //这里填对应的Mapper类
        UserMapper userService = sqlSession.getMapper(UserMapper.class);
        userService.resetPassword("2394412110@qq.com","888888");
//        User user = new User("2394412110", "11", "11", null, "123213", null, "男", null, "11", 0, 0);
//        userService.addNewUser(user);
//        System.out.println(userService.nickCheck("静砸"));
    }
}
